//
//  LaunchView.m
//  MUBATE
//
//  Created by sunbin on 2017/2/14.
//  Copyright © 2017年 Quanli. All rights reserved.
//

#import "LaunchView.h"

@interface LaunchView()
@property (weak, nonatomic) IBOutlet UIButton *confirmBtn;
@end
@implementation LaunchView

- (void)awakeFromNib{
    
}

+ (instancetype)loadLaunchView{
    LaunchView *launch = [self loadFromNib];
    [NHUtils setButton:launch.confirmBtn isLaunch:YES setTitle:NSLocalizedString(@"log in", @"log in") setLayerCornerRadius:15.f setFont:15.f];

    return launch;
}

// 加载xib
+ (instancetype)loadFromNib{
    NSArray *objects = [[NSBundle mainBundle] loadNibNamed:@"LaunchView" owner:nil options:nil];
    return [objects lastObject];
}
// 登录
- (IBAction)launchOperation:(UIButton *)sender {
    if ([self.delegate respondsToSelector:@selector(logInEven)]) {
        [self.delegate logInEven];
    }
}



@end
